package com.xinghen.provider.service;

import com.xinghen.common.base.model.response.RestResult;
import com.xinghen.provider.UacApiConstant;
import com.xinghen.provider.service.hystrix.UacUserTokenFeignApiHystrix;
import com.xinghen.security.feign.OAuth2FeignAutoConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author xinghen
 * @ClassName: UacUserTokenFeignApi
 * @Package: com.xinghen.provider.service
 * @Description uac user token service api
 * @create 2018/4/17 10:22
 */
@FeignClient(value = UacApiConstant.UAC_FEIGN_CLIENT_NAME, configuration = OAuth2FeignAutoConfiguration.class,
        fallback = UacUserTokenFeignApiHystrix.class)
public interface UacUserTokenFeignApi {

    /**
     * 超时token更新为离线.
     *
     * @return the wrapper
     */
    @PostMapping(value = "/api/uac/token/updateTokenOffLine")
    RestResult<Integer> updateTokenOffLine();
}
